Death Certificate DB Validation API
API Description
Objective
The Death Certificate DB Validation API retrieves the death certificate information from a database(DB) including,
- The name of the deceased,
- The name of the father, husband or guardian of the deceased,
- The name of the mother of the deceased,
- The date of death,
- The registration number,
- The status of the certificate,
- The registration date,
- The registration year,
- The age of the deceased,
- The gender of the deceased,
- The place of death,
- The link to the certificate,
- The address of the deceased,
- The mobile number of the deceased,
- The spouse's name,
- Remarks.
| Input | Output |
|---|---|
| The registration number and other mandatory details from the Death Certificate OCR API depending on the region | The complete death certificate information stored in the database |
Prerequisite
An optical character recognition(OCR) transaction performed on a death certificate. The fields extracted in the process serve as the input parameters for this API.
API URL
https://ind-engine.thomas.hyperverge.co/v1/deathCertificateWrapper
Overview
The API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format and you should upload all images and files as form-data through a POST request.
Authentication
You need a unique pair of application ID ( appId ) and application key (appKey) from HyperVerge to verify your identity for accessing the API.
API Request Details
Method - POST
Headers
| Parameter | Mandatory or Optional | Type | Description | Valid Values |
|---|---|---|---|---|
content-type | Mandatory | string | This parameter defines the media type for the request payload. | multipart/form-data |
appId | Mandatory | string | The application ID shared by HyperVerge | Not Applicable - this is a unique value. |
appKey | Mandatory | string | The application key shared by HyperVerge | Not Applicable - this is a unique value. |
transactionId | Mandatory | string | The unique identifier associated with the customer or the customer's journey. | Not Applicable - this is a unique value. |
Input
The following table provides the complete information on the parameter options accepted by the API.
| Parameter | Mandatory or Optional | Allowed Values | Description |
|---|---|---|---|
| consent | Mandatory | Y or N | Consent for fetching the details from Database. For example: Y or N |
| region | Mandatory | UTTAR_PRADESH, KERALA, ODISHA, TAMIL_NADU, NAVI_MUMBAI, MUMBAI, BHIWANDI, CHHATTISGARH, GOA, AHMEDABAD, JAMNAGAR, DELHI, RAJASTHAN, WEST_BENGAL | One of the fourteen supported regions. |
| regNo | Mandatory | Not Applicable | Registration Number of the Death Certificate |
| dateOfDeath | Optional | YYYY-MM-DD format | Date of Death in YYYY-MM-DD format |
| deceasedName | Optional | Not Applicable | Name of the deceased individual |
| gender | Optional | Not Applicable | Gender of the deceased individual |
| ackNo | Optional | Not Applicable | Acknowledgement Number |
| regYear | Optional | Not Applicable | Registration Number |
| district | Optional | Not Applicable | District of the individual |
| localBodyType | Optional | Not Applicable | The categorization or classification of the local administrative body responsible for governance and services in a specific geographic area |
| localBody | Optional | Not Applicable | The administrative unit responsible for local governance and services in a specific geographic area |
| council | Optional | Not Applicable | The governing body responsible for local administration and decision-making |
| subRegion | Optional | Not Applicable | The smaller geographic division or administrative unit within a broader region |
Request Sample
The following request sample includes all supported parameters. However, the mandatory parameters for a request depends on the region associated with the death certificate. The mandatory parameters for different regions are mentioned in the Mandatory Parameters by Region section.
curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/deathCertificateWrapper' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"consent": "Y",
"region": "TAMIL_NADU",
"regNo": "08119006130007800021",
"dateOfDeath": "2020-09-20",
"deceasedName": "A. ABDUL MUTHALIPU",
"gender": "M",
"ackNo": "",
"regYear": "",
"district": "",
"localBodyType": "",
"localBody": "",
"council": "",
"subRegion": ""
}'
Mandatory Parameters by Region
The API expects a set of mandatory parameters based on the region associated with a death certificate.
The following code samples highlight the mandatory parameters for each region.
- Uttar Pradesh
- Kerala
- Odisha
- Tamil Nadu
- Navi Mumbai
- Mumbai
- Bhiwandi
- Chhattisgarh
- Goa
- Ahmedabad
- Jamnagar
- Delhi
- Rajasthan
- West Bengal
{
"ackNo" : "", //optional if regNo is used
"regNo" : "", //optional if ackNo is used
"region" : "UTTAR_PRADESH"
}
{
"district" : "",
"localBodyType" : "",
"localBody" : "",
"region" : "KERALA",
"regNo" : "",
"dateOfDeath" : ""
}
{
"regNo" : "",
"district" : "",
"region" : "ODISHA",
"subRegion" : ""
}
{
"deceasedName" : "",
"regNo" : "",
"region" : "TAMIL_NADU",
"dateOfDeath" : "",
"gender" : ""
}
{
"regNo" : "",
"region" : "MAHARASHTRA",
"district" : ""
}
{
"regNo" : "",
"regYear" : "",
"subRegion" : "",
"region" : "MAHARASHTRA",
"district" : ""
}
{
"regNo" : "",
"region" : "MAHARASHTRA",
"district" : ""
}
{
"regNo" : "",
"region" : "CHHATTISGARH"
}
{
"dateOfDeath" : "",
"region" : "GOA",
"district" : "",
"council" : "",
"deceasedName" : "",
"gender" : "",
"regNo" : ""
}
{
"regNo" : "",
"region" : "AHMEDABAD",
"district" : ""
}
{
"regNo" : "",
"region" : "GUJARAT",
"district" : "JAMNAGAR"
}
{
"regNo" : "",
"region" : "DELHI",
"district" : ""
}
{
"regNo" : "",
"regYear" : "",
"region" : "RAJASTHAN"
}
{
"regNo" : "",
"region" : "WEST_BENGAL"
}
Success Response Sample
The following is a sample success response.
{
"status": "success",
"statusCode": "200",
"metaData": {
"transactionId": "transactionsample",
"requestId": "1700465756840-c3dcaf16-41f9-4179-8168-af32ffdac728"
},
"result": {
"requestId": "8fa0c95f-3616-42ec-abc8-ca1e7d8ef5c3",
"result": [
{
"deceasedName": "<Name>",
"fatherOrHusbandOrGuardianName": "<Name>",
"motherName": "<Name>",
"dateOfDeath": "2020-09-20",
"regNo": "D-2020:33-16405-000145",
"status": null,
"regDate": "2020-09-24",
"regYear": "2020",
"age": "59 YEARS",
"gender": "M",
"placeOfDeath": "DR.RABINDRANCLINIC 96/212, MTHROADVENKATAPURAM AMBATHUR-\n600053",
"link": "<link>",
"address": "<Address>",
"mobileNumber": null,
"spouseName": "<Name>",
"remarks": null
}
],
"statusCode": 101
}
}
Success Response Details
| Parameter | Description |
|---|---|
| name | The name of the deceased individual |
| fatherOrHusbandOrGuardianName | The name of the deceased individual's father or husband or guardian |
| motherName | The name of the deceased individual's mother |
| dateOfDeath | The date of the death in YYYY-MM-DD format |
| regNo | The registration Number of the Death Certificate |
| status | |
| regDate | The registration date |
| regYear | The registration number |
| age | The age of the deceased individual |
| gender | The fender of the deceased individual |
| placeOfDeath | The location of death |
| link | The link to the PDF of the Death Certificate |
| address | The address of the deceased individual |
| mobileNumber | The mobile number of the deceased individual |
| spouseName | The name of the deceased individual's spouse |
Failure Response Sample
- Bad Request
- No Records Found
The following is a sample failure response where the API fails to detect a document from the image.
{
"status": "failure",
"statusCode": "400",
"metaData": {
"transactionId": "8dih-asdb-6-42ec-abc8-ca1e7d8ef5c3",
"requestId": "8fa0c95f-3616-42ec-abc8-ca1e7d8ef5c3"
},
"result": "Bad Request"
}
The following is a sample failure response where the API fails to detect a document from the image.
{
"status": "failure",
"statusCode": "504",
"metaData": {
"transactionId": "8dih-asdb-6-42ec-abc8-ca1e7d8ef5c3",
"requestId": "8fa0c95f-3616-42ec-abc8-ca1e7d8ef5c3"
},
"result": "No records found for the given ID or combination of inputs"
}
Error Response Sample
The following are the sample error responses for the API.
- Source Unavailable
- Time Out
- Request Timed Out
- Missing or Invalid credentials
- Requests Limit Exceeded
- Internal Server Error
{
"status": "failure",
"statusCode": "503",
"metaData": {
"transactionId": "8dih-asdb-6-42ec-abc8-ca1e7d8ef5c3",
"requestId": "8fa0c95f-3616-42ec-abc8-ca1e7d8ef5c3"
},
"result": "Source Unavailable"
}
{
"status": "failure",
"statusCode": "504",
"metaData": {
"transactionId": "8dih-asdb-6-42ec-abc8-ca1e7d8ef5c3",
"requestId": "8fa0c95f-3616-42ec-abc8-ca1e7d8ef5c3"
},
"result": "Endpoint Request Timed Out"
}
{
"status": "failure",
"statusCode": "102",
"metaData": {
"transactionId": "8dih-asdb-6-42ec-abc8-ca1e7d8ef5c3",
"requestId": "8fa0c95f-3616-42ec-abc8-ca1e7d8ef5c3"
},
"result": "Endpoint Request Timed Out"
}
{
"statusCode": 401,
"status": "failure",
"error": "Missing/Invalid credentials"
"metaData": {
"requestId": "123456789",
"transactionId": "abcd"
}
}
{
"statusCode": 429,
"status": "failure",
"error": "Too many requests"
"metaData": {
"requestId": "123456789",
"transactionId": "abcd"
}
}
{
"statusCode": 500,
"status": "failure",
"error": "Internal Server Error"
"metaData": {
"requestId": "123456789",
"transactionId": "abcd"
}
}
Failure and Error Response Details
A failure or error response from the API contains a failure status with a relevant status code and error message.
The following table lists all error responses.
| Status Code | Error Message | Error Description |
|---|---|---|
| 102 | Endpoint Request Timed Out | The request to the endpoint timed out, please check your connection and try again. |
| 400 | Bad Request | Please retry the request. |
| 401 | Missing/Invalid credentials | The request either does not contain the mandatory credentials or contains invalid credentials. |
| 429 | Too many requests | Too many requests were made in a given amount of time, please try again later. |
| 500 | Internal Server Error | An internal server error occurred, please contact support for assistance. |
| 503 | Source Unavailable | |
| 504 | Endpoint Request Timed Out | The request to the endpoint timed out, please check your connection and try again. |
| 504 | No records found for the given ID or combination of inputs | The request has information that does not match. |